/* 全局样式 */
body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* 卡片样式 */
.card {
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    border: none;
    margin-bottom: 1rem;
}

.card-title {
    color: #212529;
    font-weight: 500;
}

/* 文章列表样式 */
.list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item h5 {
    color: #212529;
    margin: 0;
}

.list-group-item a:hover h5 {
    color: #0d6efd;
}

/* 标签样式 */
.badge {
    font-weight: 500;
}

/* 表单样式 */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* 按钮样式 */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* 响应式调整 */
@media (max-width: 768px) {
    main {
        padding: 1rem 0;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* 工具类 */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 动画效果 */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 300ms ease-in;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 300ms ease-in;
} 